// -*- mode: js; js-indent-level: 4; indent-tabs-mode: nil -*-
const Clutter = imports.gi.Clutter;
-const Gio = imports.gi.Gio;
const GLib = imports.gi.GLib;
+const Gtk = imports.gi.Gtk;
const Lang = imports.lang;
const Mainloop = imports.mainloop;
const Shell = imports.gi.Shell;
// calls any of these is almost certainly wrong anyway, because they
// affect the entire application.)
-let animationSettings = null;
-
// Called from Main.start
function init() {
Tweener.setFrameTicker(new ClutterFrameTicker());
- animationSettings = new Gio.Settings({ schema: 'org.gnome.desktop.interface' });
}
}
}
- if (!animationSettings.get_boolean('enable-animations'))
+ if (!Gtk.Settings.get_default().gtk_enable_animations)
tweeningParameters['time'] = 0.000001;
_addHandler(target, tweeningParameters, 'onStart', _tweenStarted);